package com.peng._05mvcboot03.common.response;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 响应状态码枚举类
 * @Author peng
 * @Date 2024-04-25 15:28
 */
@AllArgsConstructor
@Getter
public enum StatusCode {
    SUCCESS(10100,"成功"),
    ERROR(10200,"失败"),
    NOT_LOGIN(10400,"未登录"),
    USERNAME_PASSWORD_ERROR(10300,"密码或用户名错误"),
    USERNAME_OCCUPIED(1004,"用户名已占用"),
    VALIDATED_ERROR(10500,"请求参数错误");
    private final Integer code;
    private final String msg;
}
